<%--
  Created by IntelliJ IDEA.
  User: Reimu
  Date: 2022/5/8
  Time: 0:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>show</title>
</head>
<body>
<%
  int i, n;
  int sum = 0;
  for (i = 1; i < 1000; i++) {
    for (n = 2; n < i; n++) {
      if (i % n == 0) {
        break;
      }
    }
    if (n == i) {
      sum += i;
    }
  }
%>
1-1000 的质数和为：
<%=sum%>
</body>
</html>
